/*  This file is part of QWinFF, a media converter GUI.

    QWinFF is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 2 or 3 of the License.

    QWinFF is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with QWinFF.  If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef ABOUTFFMPEGDIALOG_H
#define ABOUTFFMPEGDIALOG_H

#include <QDialog>
#include <QtGui/QWidget>
#include <QtGui>
#include <QtCore>

#define LANGUAGE_NUM 17

namespace Ui {
    class LanguageDialog;
}

class LanguageDialog : public QWidget
{
    Q_OBJECT

public:
    explicit LanguageDialog(QString colorURL, int& selectIndex, QString& translatorFile, QWidget *parent = 0);
    ~LanguageDialog();

    QString getTranslatorFileName(int index);
protected:
    void paintEvent(QPaintEvent *);
    void mouseMoveEvent(QMouseEvent *);
    void mousePressEvent(QMouseEvent *);
private slots:
    void onClose(void);
signals:
    void finished(void);
private:
    Ui::LanguageDialog *ui;

    QRadioButton* m_radioButton[LANGUAGE_NUM];
    QString       m_translator[LANGUAGE_NUM];
    int&          m_selectIndex;
    QString&      m_translatorFile;

    QPixmap m_pixmapBg;
    QPoint m_pointStart;
    QPoint m_pointPress;
};

#endif // ABOUTFFMPEGDIALOG_H
